


public class 代码块 {
    private String name;
    private int age;
    private int id;
    private static String ClassRoom;

    public 代码块() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public static String getClassRoom() {
        return ClassRoom;
    }

    public static void setClassRoom(String classRoom) {
        ClassRoom = classRoom;
    }

    public 代码块(String name, int age, int id) {
        this.name = name;
        this.age = age;
        this.id = id;
    }

    {
        System.out.println("普通代码块实例化！");
    }

    static {
        System.out.println("静态代码块实例化！");
    }

    public static void main(String[] args) {
        代码块 student = new 代码块();
        代码块 student1 = new 代码块();
        //静态代码块实例化！
        //普通代码块实例化！
        //普通代码块实例化！
    }
}